package StringHelper

import (
	awesomeTask "awesomeTask/commom"
	"awesomeTask/system/helper"
	"strconv"
)

func ParseInt(string2 string) int {
	res, err := strconv.Atoi(string2)
	if err != nil {
		panic(err.Error())
	}
	return res
}
func ParseFloat64(string2 string) float64 {
	float, err := strconv.ParseFloat(string2, 64)
	if err != nil {
		panic(err)
	}
	return float
}
func UniqueId(len int) string {
	str := ""
	for i := 0; i <= len; i++ {
		str += helper.Rand(1)
	}
	return helper.Md5(awesomeTask.Now() + str)
}
